import {createRouter, createWebHashHistory} from 'vue-router';

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            name: 'index',
            component: ()=> import('views/Main/index.vue'),
            children:[
                {
                    path: '/music',
                    name: 'music',
                    component: ()=> import('views/MyMusic/index.vue'),
                    children: [
                        {
                            path: '/music/discovr',
                            name: 'discovr',
                            component: ()=> import('views/MyMusic/children/One/index.vue')
                        },
                        {
                            path: '/music/proper',
                            name: 'proper',
                            component: ()=> import('views/MyMusic/children/Tow/index.vue')
                        },
                        {
                            path: '/music/playlist',
                            name: 'playlist',
                            component: ()=> import('views/MyMusic/children/Three/index.vue')
                        },
                        {
                            path: '/music/among',
                            name: 'among',
                            component: ()=> import('views/MyMusic/children/For/index.vue')
                        },
                        {
                            path: '/music/singer',
                            name: 'singer',
                            component: ()=> import('views/MyMusic/children/Five/index.vue')
                        },
                        {
                            path: '/music/newestmusic',
                            name: 'newestmusic',
                            component: ()=> import('views/MyMusic/children/Sex/index.vue')
                        },
                    ]
                },
                {
                    path: '/podcast',
                    name: 'podcast',
                    component: ()=> import('views/MyPodcast/index.vue'),
                    children: [
                        {
                            path: '/podcast/station',
                            name: 'station',
                            component: ()=> import('views/MyPodcast/children/One/index.vue')
                        },
                        {
                            path: '/podcast/voice',
                            name: 'voice',
                            component: ()=> import('views/MyPodcast/children/Tow/index.vue')
                        },
                        {
                            path: '/podcast/rankings',
                            name: 'rankings',
                            component: ()=> import('views/MyPodcast/children/Three/index.vue')
                        },
                        {
                            path: '/podcast/hotspot',
                            name: 'hotspot',
                            component: ()=> import('views/MyPodcast/children/For/index.vue')
                        },
                        {
                            path: '/podcast/repertoire',
                            name: 'repertoire',
                            component: ()=> import('views/MyPodcast/children/Five/index.vue')
                        },
                    ]
                },
                {
                    path: '/video',
                    name: 'video',
                    component: ()=> import('views/MyVideo/index.vue')
                },
                {
                    path: '/dynamic',
                    name: 'dynamic',
                    component: ()=> import('views/MyDynamic/index.vue')
                },
                {
                    path: '/radio',
                    name: 'radio',
                    component: ()=> import('views/MyRadio/index.vue')
                },
                {
                    path: '/history',
                    name: 'history',
                    component: ()=> import('views/MyHistory/index.vue')
                },
                {
                    path: '/lovecollect',
                    name: 'lovecollect',
                    component: ()=> import('views/MyLovePodcast/index.vue')
                },
                {
                    path: '/collect',
                    name: 'collect',
                    component: ()=> import('views/MyCollect/index.vue')
                },
                {
                    path: '/lovemusic',
                    name: 'lovemusic',
                    component: ()=> import('views/MyLoveMusic/index.vue')
                },
                {
                    path: '/songlist',
                    name: 'songlist',
                    component: ()=> import('views/MySongList/index.vue')
                },
                {
                    path: '/searchsong',
                    name: 'searchsong',
                    component: ()=> import('views/SearchSong/index.vue')
                },
                
            ]
        },
        
    ]
})